<extend name="Layout:base_edit" />
<block name="body_content_block">
    <taglib name="Common\TagLib\Sohtml"/>
    <form action="{:U('Admin/save_admin_json')}" method="post">
        <table>
                <th>用户名：</th>
                <td><input type="text" name="user_name" placeholder="用户名" value="{$data.user_name}" required="required"/></td>
            </tr>
            <tr>
                <th>密码：</th>
                <td><input type="password" name="password" placeholder="密码" value="{$data.password}" required="required"/></td>
            </tr>
            <tr>
                <th>姓名：</th>
                <td><input type="text" name="personal_name" placeholder="姓名" value="{$data.personal_name}"/></td>
            </tr>
            <tr>
                <th>联系电话：</th>
                <td><input type="text" name="telphone" placeholder="联系电话" value="{$data.telphone}"/></td>
            </tr>
            <tr>
                <th>备注：</th>
                <td><input type="text" name="remark" placeholder="备注" value="{$data.remark}"/></td>
            </tr>
            <tr>
                <th>状态：</th>
                <td><sohtml:radio name="user_state" items="1=正常;0=禁用" value="{$data.user_state|default=1}" /></td>
            </tr>
        </table>
        <input type="hidden" name="id" value="{$data.id}" />
    </form>  
</block>
<block name="body_after_block">
    <script type="text/javascript">        
        item_form.resize_owner_dialog({width:338});
    </script>
</block>